package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * ShopUser. Corresponds to the database table "SHOP_USER"
 */
@DatabaseTable(tableName = "SHOP_USER")
public class ShopUser extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "SHOP_USER"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * SHOP_ID
         */
        public static final String shopId = "SHOP_ID";

        /**
         * USER_ID
         */
        public static final String userId = "USER_ID";

    }

    @DatabaseField(columnName = $.shopId, canBeNull = false)
    private String shopId;

    @DatabaseField(columnName = $.userId, canBeNull = false)
    private String userId;

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",shopId=").append(shopId);
        sb.append(",userId=").append(userId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

